#include "libmsg.h"

static void _callback(Libmsg_Subject *s, const char *e, void *event_data, void *data)
{
	printf("everything went ok\n");
}

int main(int argc, char **argv)
{
	Libmsg_Subject s;

	libmsg_init();
	libmsg_subject_setup(&s);
	libmsg_subject_observer_add(&s, "myevent", _callback, NULL);
	libmsg_subject_notify(&s, "myevent", NULL);
	libmsg_shutdown();

	return 0;
}
